package com.zwj.entity;

import java.sql.Date;
import java.util.List;

/**
 * <p>Title: OrderMaster</p>  
 * <p>Description: 订单表</p>  
 * @author  杰
 * @date  2019年5月28日
 */
public class ZOrderMaster {

	private Integer order_id;
	//买家名字
	private String buyer_name;
	//买家电话
	private String buyer_phone;
	//买家地址
	private String buyer_address;
	//订单总金额
	private double order_amount;
	//订单状态，默认0新下单
	private boolean order_status;
	//支付状态，默认0未支付
	private boolean pay_status;
	//创建时间
	private Date create_time;
	//修改时间
	private Date update_time;
	private List<ZOrderDetail> lod; 
	private int user_id;
	
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public List<ZOrderDetail> getLod() {
		return lod;
	}
	public void setLod(List<ZOrderDetail> lod) {
		this.lod = lod;
	}
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
	public String getBuyer_name() {
		return buyer_name;
	}
	public void setBuyer_name(String buyer_name) {
		this.buyer_name = buyer_name;
	}
	public String getBuyer_phone() {
		return buyer_phone;
	}
	public void setBuyer_phone(String buyer_phone) {
		this.buyer_phone = buyer_phone;
	}
	public String getBuyer_address() {
		return buyer_address;
	}
	public void setBuyer_address(String buyer_address) {
		this.buyer_address = buyer_address;
	}
	public double getOrder_amount() {
		return order_amount;
	}
	public void setOrder_amount(double order_amount) {
		this.order_amount = order_amount;
	}
	public boolean isOrder_status() {
		return order_status;
	}
	public void setOrder_status(boolean order_status) {
		this.order_status = order_status;
	}
	public boolean isPay_status() {
		return pay_status;
	}
	public void setPay_status(boolean pay_status) {
		this.pay_status = pay_status;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	@Override
	public String toString() {
		return "OrderMaster [order_id=" + order_id + ", buyer_name=" + buyer_name + ", buyer_phone=" + buyer_phone
				+ ", buyer_address=" + buyer_address + ", order_amount=" + order_amount + ", order_status="
				+ order_status + ", pay_status=" + pay_status + ", create_time=" + create_time + ", update_time="
				+ update_time + ", lod=" + lod + "]";
	}
	public ZOrderMaster(Integer order_id, String buyer_phone, String buyer_address) {
		super();
		this.order_id = order_id;
		this.buyer_phone = buyer_phone;
		this.buyer_address = buyer_address;
	}
	public ZOrderMaster() {
		super();
		// TODO Auto-generated constructor stub
	}
	public ZOrderMaster(String buyer_name, String buyer_phone, String buyer_address, double order_amount, int user_id) {
		super();
		this.buyer_name = buyer_name;
		this.buyer_phone = buyer_phone;
		this.buyer_address = buyer_address;
		this.order_amount = order_amount;
		this.user_id = user_id;
	}
	
}
